package lab02.test36;

public class Test36 {
    public static void main(String[] args) {

        //本科生
        UnderGraduate zhangsan = new UnderGraduate("张三", 80, 80, 80);
        int benkekecheng = 55;

        float ggkecheng = zhangsan.average(zhangsan.getEnglish(), zhangsan.getMath(), zhangsan.getChinese());

        float zongkecheng = zhangsan.pi(benkekecheng, ggkecheng);
        System.out.println("学生名字：" + zhangsan.getName());
        System.out.println(zhangsan.getName() + "语文" + zhangsan.getChinese());
        System.out.println(zhangsan.getName() + "数学" + zhangsan.getMath());
        System.out.println(zhangsan.getName() + "英语" + zhangsan.getEnglish());
        System.out.println(zhangsan.getName() + "本科课程平均分为：" + zongkecheng);
        zhangsan.benkepd(zongkecheng);


        //研究生
        PostGraduate lisi = new PostGraduate("李四", 86, 83, 75);
        int course = 89;

        float everyGrade = lisi.average(lisi.getEnglish(), lisi.getMath(), lisi.getChinese());

        float total = lisi.pj(course, everyGrade);

        System.out.println("---------------------");
        System.out.println(lisi.getName() + "语文" + lisi.getChinese());
        System.out.println(lisi.getName() + "数学" + lisi.getMath());
        System.out.println(lisi.getName() + "英语" + lisi.getEnglish());
        System.out.println(lisi.getName() + "研究生课程平均分：" + everyGrade);
        System.out.println(lisi.getName() + "总平均分为：" + total);
        lisi.postgraduate(total);


    }
}
